package com.fbee.smartcommunities.entity;

import com.fbee.smartcommunities.core.Base;
import java.io.Serializable;

import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.*;

/**
 * <p>
 * 收货地址
 * </p>
 *
 * @author 汪佳泉
 * @since 2024-08-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Address extends Base {

    private static final long serialVersionUID = 1L;

    /**
     * 联系人
     */
    private String linkUser;

    /**
     * 联系地址
     */
    private String linkAddress;

    /**
     * 联系电话
     */
    private String linkPhone;

    /**
     * 所属用户
     */
    private Long userId;

    /**
     * 是否为默认地址
     */
    private Boolean isDefault;

    public Address(String linkUser, String linkAddress, String linkPhone, Long userId) {
        this.linkUser = linkUser;
        this.linkAddress = linkAddress;
        this.linkPhone = linkPhone;
        this.userId = userId;
    }

    public Address(String linkUser, String linkAddress, String linkPhone) {
        this.linkUser = linkUser;
        this.linkAddress = linkAddress;
        this.linkPhone = linkPhone;
    }
}
